package com.it.blog.controller;


import com.it.base.utils.R;
import com.it.blog.service.IParamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController//rc
@RequestMapping("/param")
@Api(tags = "参数接口")
public class ParamController {
    @Autowired
    private IParamService paramService;

    @GetMapping("/ParamAll")
    @ApiOperation(value = "参数map")
    public R<Map<String, String>> getParamAll() {
        Map<String,String> map=paramService.getParamAll();
        return R.ok(map);
    }


}
